
\setlength{\topmargin}{-0.5in}
\setlength{\textheight}{9in}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textwidth}{6.5in}

%Grabbed from Jim Teresco. Thanks, Jim!
\newcommand{\etal}{{\it et al}.$\:$}
\newcommand{\eg}{{\it e}.{\it g}.$\:$}
\newcommand{\cf}{{\it cf}.$\:$}
\newcommand{\ie}{{\it i}.{\it e}.$\:$}

\newcommand{\singlespace}{
  \protect\renewcommand\baselinestretch{1.0}
  \protect\normalsize
}

\newcommand{\doublespace}{
  \protect\renewcommand\baselinestretch{1.5}
  \protect\normalsize
}

\newcommand{\source}{{\it source}$\:$}
\newcommand{\target}{{\it target}$\:$}

\def\advisor#1{\gdef\@advisor{#1}}
\def\advisoremail#1{\gdef\@advisoremail{#1}}
\def\email#1{\gdef\@email{#1}}

\def\@maketitle{%

\begin{center}
\thispagestyle{empty}
\vspace{3cm}
{\textsc \@title}\\
\vspace{2cm}
by\\
{\textsc \@author}\\
{\tt \@email}\\
\vspace{2cm}
\@advisor, Advisor\\
{\tt \@advisoremail}\\
\vspace{3cm}
A thesis submitted in partial fulfillment \\
of the requirements for the\\
Degree of Bachelor of Arts with Honors\\
in Computer Science\\
\vspace{1cm}
\psfig{file=logo-master.ps,width=2cm}\\
\vspace{1cm}
{\textsc WILLIAMS COLLEGE}\\
\vspace{2cm}
Williamstown, Massachusetts\\

{\textsc \@date}

\end{center}

\pagebreak
} %end maketitle




% Different font in captions. Thanks jacob:
% http://dcwww.camp.dtu.dk/~schiotz/comp/LatexTips/LatexTips.html#captfont
\newcommand{\captionfonts}{\footnotesize}

\makeatletter  % Allow the use of @ in command names
\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{{\captionfonts #1: #2}}%
  \ifdim \wd\@tempboxa >\hsize
    {\captionfonts #1: #2\par}
  \else
    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
\makeatother   % Cancel the effect of \makeatletter

